package com.itkaige.boot.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

//@Component
//@ConfigurationProperties(prefix = "product1")
public class Product {
    private Integer id;
    private String name;
    private String gloryPower;

    public Product(Integer id, String name, String gloryPower) {
        this.id = id;
        this.name = name;
        this.gloryPower = gloryPower;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gloryPower='" + gloryPower + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGloryPower() {
        return gloryPower;
    }

    public void setGloryPower(String gloryPower) {
        this.gloryPower = gloryPower;
    }
}
